public class Test {
    public static void main(String[] args) {
      try{
          System.out.println(10/0);
          System.out.println("哈哈哈");
      }catch (NullPointerException e){
          e.printStackTrace();
          System.out.println("空指针异常");
          System.out.println("111");
      }catch (ArithmeticException e){
          e.printStackTrace();
          System.out.println("算数异常");
      }
        System.out.println("hello");
    }
}
